package com.glsc.ngateway.common.base.domainmapper;

import com.glsc.ngateway.common.api.flowable.dto.task.formData.vendor.domaindto.VendorRateMainFormDto;
import com.glsc.ngateway.common.base.domain.mysql.gateway.platform.flow.FlowFormVendorRateMain;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;


/**
 * @author zzp
 */
@Mapper(componentModel = "spring")
public interface VendorRateMainFormMapper {
    VendorRateMainFormMapper INSTANCE = Mappers.getMapper(VendorRateMainFormMapper.class);

    VendorRateMainFormDto domain2dto(FlowFormVendorRateMain domain);

    List<VendorRateMainFormDto> domain2dto(List<FlowFormVendorRateMain> domain);

    @Mapping(target = "insertTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "deleted", ignore = true)
    FlowFormVendorRateMain dto2domain(VendorRateMainFormDto dto);

    List<FlowFormVendorRateMain> dto2domain(List<VendorRateMainFormDto> dto);
}
